*, *:before, *:after {
  box-sizing: border-box;
}

  
#container {
  width: 320px;
  height: 500px;
  background: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: 0px;
  margin-left: -160px;
  overflow: hidden;
  margin-top:50px;
  
  &.details {
    .list-view {
      background: transparent;
      transition: background 0.5s;
      pointer-events: none;
      li {
        transition: transform 0.3s, opacity 0.2s;

        &:not(.active) {
          opacity: 0;
        }
        &.active {
          transform: translate3d(0, 80px, 0);  
          border-color: rgba(255,255,255,0);
          transition: transform 0.3s, opacity 0.2s, border-color 0.2s;

          &:hover {
            background: none;
          }
        }
      }
    }
    .details-view {
      .back {
        transform: scale(1);
      }
      .background {
        transform: translate3d(0,-110px,0);
        transition: transform 0.25s 0.05s;
      }
      li {
        @for $i from 1 through 4 {
          &:nth-child(#{$i}) {
            transform: translate3d(0,0,0);
          } 
        }
      }
      ul{
      border-style: solid;
      border-width: 0px;
      border-color: #bdc3c7;
      }
    }
  }
  
  .list-view {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(255,255,255,1);
    z-index: 1;
    transition: background 0.3s 0.1s;
    overflow:auto;


    ul {
      li {
        position: absolute;
        left: 0;
        right: 0;
        height: 70px;
        border-width:0px;
        border-bottom-width: 1px;
        border-style: solid;
        border-color: #ddd;
        transition: transform 0.3s, opacity 0.3s 0.3s, border-color 0.3s 0.3s;

        .name {
          -webkit-font-smoothing: antialiased;
        }

        @for $i from 1 through 20 {
          &:nth-child(#{$i}) {
            transform: translate3d(0, ($i - 1) * 70px, 0);
          }
        }

        &:hover {
          background: #efefef;
          cursor: pointer;
        }
        .avatar {
          content: '';
          display: inline-block;
          vertical-align: middle;
          width: 40px;
          height: 40px;
          border-radius: 50%;
          background: url('/assets/People.png');
          background-size: 100%;
          margin: 15px 15px;
        }

        .king {
          content: '';
          display: inline-block;
          vertical-align: middle;
          width: 40px;
          height: 40px;
          border-radius: 50%;
          background: url('/assets/king.jpg');
          background-size: 100%;
          margin: 15px 15px;
        }

      }
    }
  }

  .details-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: #fff;
    
    .background {
      position: absolute;
      top: 0;
      height: 260px;
      width: 100%;
      background: url('/assets/PeopleBackground.jpg');
      transition: transform 0.25s;
    }
    
    .back {
      position: absolute;
      top: 5px;
      left: 5px;
      width: 30px;
      height: 30px;
      margin-left:10px;
      background-size: 100%;
      border: 0;
      transform: scale(0.1);
      transition: transform 0.15s;
      z-index: 1;
      font-size: 3.4em;
    }
    .goin {
      color:#34495e;
      top:5px;
      position:relative;
      z-index:1;
      margin-right: 20px;
      margin-top: 3px;
      font-size: 2.2em;
    }
    ul {
      position: absolute;
      left: -40px;
      right: 0;
      top: 225px;
      list-style-type: none;
    }
    li {
      margin-left:-20px;
      i {
        font-size: 2rem;
        margin: 0 15px;
        padding-right:40px;
      }
      height: 70px;
      line-height: 70px;
      border-bottom: 1px solid #ddd;
      padding-left:30px;
      
      @for $i from 1 through 4 {
        &:nth-child(#{$i}) {
          transform: translate3d(0, (($i * 5px) + 25px) , 0);
          transition: transform 0.3s (($i - 1) * 0.02s);
        }
      }
    }
  }
}

  .page-header {
    border-bottom: none;
    text-align: center;
    margin-bottom: 0;
    margin-top:0px;
    padding-bottom: 0px;
  }

  .ui-widget-content{
    position: absolute;
    top: 1px;
    left: 0px;
    display: flex;
  }

  .list-view-p {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(255,255,255,1);
    z-index: 1;
    transition: background 0.3s 0.1s;
    overflow:auto;

    ul {
      li {
        position: absolute;
        left: 0;
        right: 0;
        height: 70px;
        border-width:0px;
        border-bottom-width: 1px;
        border-style: solid;
        border-color: #ddd;
        transition: transform 0.3s, opacity 0.3s 0.3s, border-color 0.3s 0.3s;

        .name {
          -webkit-font-smoothing: antialiased;
        }

        @for $i from 1 through 20 {
          &:nth-child(#{$i}) {
            transform: translate3d(0, ($i - 1) * 70px, 0);
          }
        }

        &:hover {
          background: #efefef;
          cursor: pointer;
        }
        .avatar {
          content: '';
          display: inline-block;
          vertical-align: middle;
          width: 40px;
          height: 40px;
          border-radius: 50%;
          background-size: 100%;
          margin: 15px 15px;
          i{
            margin-top:5px;
          }
        }
      }
    }
  }

  